package org.example.service;

import org.example.dao.BrandDao;
import org.example.domain.Brand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("brandService")
public class BrandServiceImpl implements BrandService{
    @Autowired
    private BrandDao brandDao;

    @Override
    public List<Brand> lookUp() {
        List<Brand> brands = brandDao.selectAll();
        return brands;
    }
}
